home *** CD-ROM | disk | FTP | other *** search
/ PC Basics 53 / PC Basics Issue 53.iso / Software / Internet / Invboard.exe / PC Basics 53 / Invboard / upload / Skin / s1 / skin_legends.php < prev    next >
Encoding:
PHP Script  |  2002-06-12  |  1.5 KB  |  73 lines

  1. <?php
  2.  
  3. class skin_legends {
  4.  
  5.  
  6. function emoticon_javascript()
  7. {
  8. return <<<EOF
  9. <script language='javascript'>
  10. <!--
  11.     function add_smilie(code)
  12.     {
  13.         opener.document.REPLIER.Post.value += ' ' + code + ' ';
  14.         //return true;
  15.     }
  16. //-->
  17. </script>
  18. EOF;
  19. }
  20.  
  21.  
  22. function page_header( $title, $row1, $row2 ) {
  23. global $ibforums;
  24. return <<<EOF
  25.  
  26. <table cellpadding='0' cellspacing='0' border='0' width='100%' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
  27.         <tr>
  28.             <td>
  29.               <table cellpadding='5' cellspacing='1' border='0' width='100%'>
  30.                 <tr>
  31.                    <td colspan='4' id='titlemedium' align='center'>$title</td>
  32.                 </tr>
  33.                 <tr>
  34.                    <td width='50%' align='center'   id='category'   valign='middle'>$row1</td>
  35.                    <td width='50%' align='center'   id='category'    valign='middle'>$row2</td>
  36.                 </tr>
  37.  
  38.  
  39. EOF;
  40.  
  41. }
  42.  
  43. function emoticons_row($code, $image) {
  44. global $ibforums;
  45. return <<<EOF
  46.  
  47.                 <tr>
  48.                    <td align='center' id='row1' valign='middle'><a href='javascript:add_smilie("$code")'>$code</a></td>
  49.                    <td align='center' id='row2' valign='middle'><a href='javascript:add_smilie("$code")'><img src='{$ibforums->vars['EMOTICONS_URL']}/$image' border='0' valign='absmiddle' alt='$image'></a></td>
  50.                 </tr>
  51.  
  52.  
  53. EOF;
  54.  
  55. }
  56.  
  57. function page_footer() {
  58.  
  59. return <<<EOF
  60.  
  61.                 </table>
  62.               </td>
  63.              </tr>
  64.             </table>
  65.  
  66. EOF;
  67.  
  68. }
  69.  
  70.     
  71.  
  72. }
  73. ?>